<template>
    <ul class="news-list">
        <li>编号：{{ route.query.id }}</li>
        <li>标题：514</li>
        <li>内容：{{ route.query.content }}</li>
    </ul>
</template>

<script setup lang='ts' name=''>
import { ref, reactive } from 'vue'
import { useRoute } from 'vue-router';

    let route = useRoute();
    console.log('id',route.query.id,'content',route.query.content);

</script>
<style scoped>
.news-list {
    list-style: none;
    padding-left: 20px;
}

.news-list>li {
    line-height: 30px;
}
</style>